package cn.glutnn.entity;

import java.util.Date;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * (User)表实体类
 *
 * @author msh
 * @since 2024-10-24 16:05:21
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_user")
public class User {
    @TableId
    @NotBlank
    private String userName;

    @NotBlank
    private String password;

    private String nickName;

    private String phone;

    private String identityNum;
    //地址
    private String address;
    //user普通用户，expert专家，admin管理员
    private String role;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    //积分500
    private Integer integral;
    //信誉1，2，3，4，5
    private Integer credit;
    //头像
    private String avatar;

    private String realName;

}

